Items filtered by date: Monday, 07 December 2015

This can be tricky if you do not know how to do this, it should also be noted depending on what text you are replacing your method you will use will change.

These methods can also be used to remove text from strings.

Standard Text String Replacement

This is straight forward and you should just use the example below. This will not allow the use of %

@echo off

set mystring=This is a water bottle. 
echo %mystring% 

set mystring=%mystring:water=glass%
echo %mystring%

Outputs as follows:

This is a water bottle.

-->

This is a glass bottle.

 

% Character and String Replacement

To replace % you need to do a few more steps because % is a special character. This method will also allow you to change normal strings aswell.

The following example will convert a URL that has had the slashes replaced with HTML entities and of course these include % which is a special character in batch files and cannot be escaped.

We use EnableDelayedExpansion to change when these variables are parsed allowing us to convert the %5C to \ so the URL can be used appropriately. We are just using echo here but the variable can be used like normal variable aswell.

The example will convert the following URL

D:%5Cwebsites%5Chtdocs%5Cprojects%5Cqwcrm%5Csrc%5Ccache%5Csmarty%5Ccompile%5Cd0d7cab3fc900.file.financial.tpl.php

-->

D:\websites\htdocs\projects\qwcrm\src\cache\smarty\compile\d0d7cab3fc900.file.financial.tpl.php

The Example

@echo off

:: Each variable is to be expanded at execution time rather than at parse time
setlocal EnableDelayedExpansion

:: Set the URL that has been passed to the batch file as a commandline parameter
set URL=%1

:: Convert '%5C' --> '\' - Notice the command is wrapped in !
set URL=!URL:%%5C=\!

:: Optional
endlocal

:: Output the URL
echo %URL%

 

Links

Published in Windows Family
Thursday, 07 July 2022 07:29

Upgrade Xampp and keep your data

Xampp does not have an inbuilt upgrade mechanism and there does not appear to be any official instructions on how to upgrade your Xampp install in full or just certain aspects such as PHP.

My xampp location is always at:

D:\xampp
  • I put it on the D: drive because the amount of files that are created and this made it easier to defrag and keeps it away from my neat C: drive.

Full Upgrade

These instructions will show you how to upgrade your Xampp installation in full and assumes you have used the portable version. I never use the installer.

  • Backup the whole xampp folder
  • Export the Databases - using one of the options below:
    These processes will wipe any date in the target databases
    1. Copy and Paste
      • This requires xampp to be shutdown cleanly.
      • This will not work if the source is MySQL and the target is MariaDB etc... and perhaps if the version of the DB are too different.
      • Nothing needs to be done at this point
    2. Command Line
      • Dump all databases with the command line.
      • This does not suffer from timeouts
      • Run one of these commands:
        From the xampp shell:
        mysqldump -u root -p --all-databases > all-db-dump.sql
        
        From the command line:
        D:\xampp\mysql\bin\mysqldump -u root -p --all-databases > all-db-dump.sql
        
        NB: These can be used for doing a backup of you databases
        
    3. phpMyAdmin
  • Uninstall xampp as a service (if enabled)
  • Shutdown xampp
  • Rename the xampp folder
    From: D:\xampp\htdocs
    
    To: D:\old-xampp\htdocs
  • Download the new portable/zip/7z version of xampp
  • Inside the D:\xampp\htdocs folder there are some xampp only files, just delete them or move them into their own folder just in-case you need them later (they are always in the downloaded file)
  • Run the setup batch file
    D:\websites\setup_xampp.bat
  • Import the databases - use the method you did to export them
    1. Copy and Paste (this works)
      • Make sure that xampp is not running
      • Delete the new database files
        D:\xampp\mysql\data
      • Copy the old database files
        From: D:\old-xampp\mysql\data
        
        To: D:\xampp\mysql\data
      • Start the Xampp control panel
      • Start Apache and MySQL
      • Run the 'Xampp Shell' (by clicking the button in the control panel)
      • Run the command and wait. It might not be quick.
        mysql_upgrade
    2. Command Line
      • Import all databases with the command line.
      • This does not suffer from timeouts
      • Run one of these commands:
        From the xampp shell:
        mysql -u root -p < all-db-dump.sql
        
        From the command line:
        D:\xampp\mysql\bin\mysql -u root -p < D:\all-db-dump.sql
        
        NB: These can be used for restoring a backup of you databases
        
    3. phpMyAdmin
  • Copy/move all of your website files from the old location to your new xampp folder
    From: D:\old-xampp\htdocs
    
    To: D:\xampp\htdocs 
  • Copy my libraries folder and update the libraries (this is only for me)
    From D:\xampp\libraries
    
    To: D:\xampp\libraries
  • Exit Xampp and make sure it is not running
  • Compare/merge your config files (as required)
    D:\xampp\php\php.ini
    D:\xampp\mysql\bin\my.ini
    D:\xampp\phpMyAdmin\config.inc.php
    D:\xampp\apache\conf\httpd.conf
    D:\xampp\apache\conf\extra\httpd-ssl.conf
    D:\xampp\apache\conf\extra\httpd-xampp.conf
    D:\xampp\apache\conf\extrahttpd-vhosts.conf
    D:\xampp\xampp-control.ini
  • Additional PHP extensions - Updated versions will probably be required, they are located here:
    D:\xampp\php\ext
    • Ioncube
      • Thread Safe and 64 Bit
      • Loader Download | ionCube - Secure and license your PHP scripts with the ionCube PHP Encoder 11.0. Secure valuable code with bytecode compilation, encryption and licensing capabilities.
    • Xdebug: Downloads - Xdebug: A powerful debugger for PHP
      • Xampp 7.4 (64 bit)
        • Xdebug v2.8.1 Thread Safe 64 Bit
        • eg: php_xdebug-2.8.1-7.4-vc15-x86_64.dll
        • The file has been renamed.
      • There is a new 3.x series of xdebug that uses slightly different code in the php.ini but this can be found in the xdebug section of netbeans
        • An example file name for the required version in this series is: php_xdebug-3.1.5-7.4-vc15-x86_64.dll
      • I have not used v3.x yet but I am sure it will work fine with the right calling code.
      • Naming Explained
        • x86_64 = 64 Bit
        • nts = Non thread Safe
        • lack of nts = Thread Safe
        • TS (on download button) =  Thread safe
  • Set Notepad++ as the default text editor
    C:\Program Files\Notepad++\notepad++.exe
  • Enable Autostart of the Apache and MySQL modules
  • Set my folder icons so i can see things easily
    D:\xampp
    D:\xampp\htdocs
    D:\xampp\libraries
  • Put a text file called version.txt in the xampp root folder showing the version installed. This can be useful if things go wrong.
  • If you have anything else like SSL certs installed you will need to figure that out yourself.
  • Final Things
    • make sure PHPMyadmin default collation has been set to your preferred option (mine is utf8mb4_unicode_ci)
    • Apply the phpMyAdmin pmahomme template fix
  • Restart Xampp

Keep your old xampp files for awhile to make sure you have not missed anything

Links

Published in xampp
Sunday, 19 June 2022 08:56

My Commodore Notes

These are my Commodore notes that don't fit anywhere else.

General Sites

Commodore Only Sites

A collection of forums, community and ROM sites

General Notes

Misc

VICE Emulator

  • Key Mappings (General)
    • 2.8 The keyboard emulation | VICE Manual - There are two ways of emulating the keyboard in VICE and they are described here
    • Change keyboard mappings
      • VICE --> Preferences --> Input Devices --> Keyboard
      • the files are located at:
        • /VICE Folder/Your Commodore Device/gtk3_sym.vkm
        • /VICE Folder/Your Commodore Device/gtk3_pos.vkm
    • Soft reset: Alt + F9
      • When you soft reset VICE it does NOT resets the Tape counter
    • Hard reset: Alt + F12
      • When you hard reset VICE it resets the Tape counter
    • You can add a key for 'Press PLAY on datasette' which is NOT assigned by default
      • Help --> Hotkeys
  • Key Mappings (+4)
    • Joystick Fire: Numpad 0
    • Run/Stop: End
    • Shift Lock: Caps Lock
    • Take a Screenshot = Pause
      • Files end up in the VICE /bin/ folder
    • Esc:
    • Commodore Key: Left Ctrl
  • Key Mappings (C64)
    • C64 VICE Front-End – Waiting for Friday
      • This has a image of the key mappings for the C64 used in VICE.
      • The aim of this project was to create a front-end for Commodore 64 emulation using VICE. One of the primary problems with emulators (especially for machines from the ’80s) is that there was no standard keyboard arrangement. In this project I took a broken Commodore 64 computer and replaced the motherboard with a PIC microcontroller based board which interfaces the keyboard and both joystick ports (including ADC for the paddles) to a modern full-speed USB 2.0 interface.
    • RUN/STOP: Esc
    • RESTORE: PgUp
    • CONTROL: Tab
    • Commodore Key: Left Ctrl
    • With the default english keymap file, RUN/STOP is mapped to the CAPS LOCK key, and RESTORE is mapped to the PAGE UP key.
  • Monitor
    • VICE Manual - 12 Monitor
    • The VICE emulator has a complete built-in monitor, which can be used to examine, disassemble and assemble machine language programs, as well as debug them through breakpoints.
    • It can be activated by using "Activate monitor" from the menu.
    • The monitor will either run in a separate window, or in a terminal emulation program (such as rxvt or xterm) when "native monitor" has been enabled in the settings.
  • No sound
  • When you reset the emulator, the tape counter is reset, so to disable it:
    • If using the older Win32 interface, it's in Settings -> Datasette settings -> uncheck 'Reset Datasette with CPU'
    • If using the GTK interface, it's in Settings drop menu -> Settings -> I/O Extensions -> Tape port devices -> uncheck 'Reset datasette with CPU'
  • SDL vs GTX

YAPE emulator

  • Key Mappings
    • Quick Debugger: Shift + F9
      • This will allow you to see tape counter.
      • Once the game has loaded, the tape counter will read: A simple tape counter (simply the offset in the TAP or WAV file) TAPE
      • 000000000 the underlined ones are equivalent to commodore tape counter (Tape Counter + one and lots of extra preciseness).
    • Full Throttle =
    • Tape
      • Play: F5
      • Stop: Shift + F5
    • Resets
      • Run/Stop + reset: TAB + F11
        • Equivalent to the one on the real machine
        • Jumps to the machine language monitor without losing memory contents and BASIC programs and variables.
      • Soft reset: F11
        • Equivalent to pushing the white RESET button of a 264 computer. You will not lose the memory contents only BASIC programs and variables.
        • If a program masks the RST vector, you may not be able to restart the emulated machine this way.
      • Hard reset: SHIFT + F11
        • Equivalent to turning the power on and off in a real machine in that it clears all the RAM contents
      • Forced reset: CTRL + F11
        • Will always jump to the ROM reset vector, even when it's disabled.
        • Great for debugging.
      • Drive reset: no shortcut key
        • Eventually drives may crash, too, so they can be reset here, all at once or individually.
        • This is the equivalent of turning the drive off and then on.
    • Escape: ` (tilde)
    • Commodore Key: Left Ctrl
    • Control: Right Ctrl or Insert (for laptops)
    • Shift Lock: Caps Lock
    • Run/Stop: Tab
    • Home: Home
    • Pound (£): Delete
    • Pound Sign / Hash (#): Shift + 3
    • Inst/Del: BackSpace
    • Cursors Arrows: Cursor keys
  • Joystick Mappings
    • These are the key mappings when the josytick is emulated through the PC keyboard.
    • Joystick Move: Cursor keys or Numpad 2, 4, 6, 8 (selectable via the Input dialog window)
    • Joystick Fire: Numpad 0
    • Issues with Joystick then try one of these settings:
      1. Settings --> Input setup --> Configure keyboard & Joystick --> Windows input Method = Message Queue - positional keymap
      2. Settings --> Input setup --> Configure keyboard & Joystick --> Emulation via keyboard --> port 1/2 = Cursor keys
Published in Emulators
Thursday, 16 June 2022 11:24

Commodore Computer Repairs

These are my nots on trying to repair my Commodore computers and there various issues.

  • https://plus4world.powweb.com/forum/25481
    • MIK
      • Q: Unlucky Nightmare! I've had it happen and I'm sure many people have. A second hand Plus/4 gives up the ghost after being powered on for a short while, from maybe not being used for many years! Something I can not explain but it's happened to me once before now with a second hand P4. Everything was running sweet and then BOOM, black screen. Never fixed it as I'm running out of dead machines to fix working ones.
      • A: Sounds like the CPU.
    • MIK
      • If you can see anything on the screen right now such as messed up text and stuff then I would of gone for the TED also but a totally black screen is normally the CPU.
    • SVS
      • Unit 1551 #9 can work only if a unit 1551 #8 is connected and turned on. This means that a 1551 #9 cannot work even if a 1541 #8 is connected to Plus4;
      • The drives (any type) have to be turned on and initialized *before* to turn on the Plus4;
    • crock
      • Right to the problem, the CPU is just as prone as the TED to a premature death, and a likely cause of your black screen but it is not the only thing. The kernel, PLA, *any* ram chip, any component in the reset circuit or the crystal will also cause the same effect, so don't lose hope yet.
  • Commodore Plus/4 Specifications
    • Modulator - Analogue RF Channel 36
    • Processor - MOS 7501/8501 @0,885/1.76 MHz
    • Memory - 64 KB RAM (upgradeable) and 64 KB ROM
    • OS - BASIC 3.5
  • Dead/Non-Responsive Serial Port
    • Scenario:
      • I was using my commodore plus4 for a couple of days to capture tapes using TTAPSERV.PRG and an XE cable which worked well and then all of a sudden it stopped working.
      • I can see communication using VC1541 and a XE cable, but it is inconsistent and cannot be used.
      • The inconsistent transfer error is what I got when I used the wrong parallel port mode or a parallel port that was not compatible check the motherboard of the PC
      • It is either the serial port has failed or the parallel port
      • NB: If your adapter never worked from the beginning, the most likely cause is the printer port is not compatible with the X range of adapters.
    • Checklist
      • Check the parallel port with something to make sure it is not faulty
        • Port Tester
        • Parallel Printer
        • Try all different port modes available in the BIOS
      • XE Adapter
        • check for dry joints
        • could be the diodes on my XE adapter as they are
      • Commodore Drive
        • Check the serial port with a known good piece of commodore hardware (+4/C16/C64)
        • could be the IC controlling the serial bus in the commodore drive
        • could be the diodes near the serial port which apparently is common fault
        • check the physical connection of the serial port as sometimes the pins become dry-jointed etc.
  • Commodore 8 Bit Repair - VCF 2012 | YouTube | bilHerd - Part 1 of 2: From VCF East 2012 - Workshop on diagnosis and repair of vintage 8 bit computers; PET through C128. Presenters Rob Clarke and Bil Herd (both ex Commodore employees) demonstrate existing tools and methods for troubleshooting yesterdays computers.
  • Diag264 - Diagnostic tool for Commodore 8-Bit Machines
    • This document describes operation of the Diag264 diagnostic tool and harness. It can be used to assist in the identification of faults with RAM, ROM, I/O & CPU ports, and TED registers. It has been tested on a wide range of 264 series (aka TED) machines, including some non-standard configurations and PAL and NTSC machines. This includes the C116, Commodore 16, C232 and Plus/4, and even a V364!
    • The design and operation of Diag264 is closely modelled on the operation of the cartridges available for the 64/128 and VIC-20. One of the aspects that I was most keen to copy was the functionality of the Dead Test Cartridge of the 64. The primary use of this cartridge was to find RAM issues in a machine that otherwise appeared dead.
  • Classic computer Commodore plus 4 repair and testing | YouTube | Phil Kruman - Repairing a classic computer - The Commodore Plus/4 computer is more difficult than most of the 1980's micro's due to its short production run and Commodore only processors. As an alternative, I try an Italian made CPU daughterboard with surprising results for this ailing classic computer.
  • Commodore Plus/4 repair and demonstration | YouTube | Artic retro - I finally got my hands on a couple of Commodore Plus/4 machines. One of them not working. In this video I do a repair job, some restoration and then a demonstration of the working plus/4 machine with a few games.
  • Commodore 16 and 'Device Not present' error - Forum (#35118) - Plus/4 World
    • I have picked a Commodore 16 a few days ago from a local sale. The machine looks OK and will boot up normally. Problem is when I want to use my SD2IEC connected to the serial port, I'll just get a 'Device Not Present' error message while trying to load the SD2IEC browser. I have tried also with a 1571 Disk Drive but same message . What this can be? Faulty chip?
    • Diagnosis of this hardware issue
  • Commodore Plus/4 Repair & Restoration – Adam's Vintage Computer Restorations
    • A while back I got my hands on my first Commodore Plus/4, yet another 1980s 8-bit computer to add to my collection. The machine was in good condition and came with several accessories and its original box, however it was sold as "untested".
    • After checking that the PSU was working OK, I did a quick power-on test – the computer seemed to output video, but only displayed a “garbage” screen with flashing blocks and lines, and various artefacts which changed on reset. The unit required repair.
  • C64 "Searching for $" repair (serial bus issue) | YouTube | bwack
    • Two days ago I picked up a breadbin style Commodore 64. It worked, but the disk drive loading was intermittent. Next day it was almost impossible to get directory listing and later it was impossible.
      I swapped CIA chips, no change. I swapped C64's, bingo. Problem is within the new C64 and not the drives.
    • According to the service manual, the serial bus should be checked. On the serial bus, in both ends, there are 7604 buffers. They are like the amplifiers of the VIA (in the 1541 drive or VIC20) and CIA chips (C64). This had ofcourse failed and desperatly i borrowed one from another drive. I promise i promise i promise to replace with new one soona and clean up the rework. :)
  • Commodore Plus/4 and temperatures - Davide Bucci
    • Is temperature a big deal? Spoiler: Nope.
    • An in-depth teardown to look at this issue.
  • Repair of an Commodore Plus/4 (264) ! - Stone Oakvalley Studios - One Crazy Multi Talent - A loving restoration of an unwanted Plus4
  • IC Chip Removal
  • How to remove chips without damaging the circuit board | Yourube | Adrian's digital Basement
    • It can be tough to remove through hole ICs from boards without causing any damage. I'm using a desoldering iron, so if you don't have one, you will need something to remove solder. (Braid, manual pump, etc.) These usually leave some solder behind on double sided boards making it very hard to get chips out without causing damage.
    • I use a combination of removing as much solder as I can from the bottom and hot air on the top to get the chips out without causing any damage.
    • Makes it look easy.

 

Published in Emulators
Thursday, 16 June 2022 09:25

Commodore Disk Transfers

The best kit setup to have (in order)

  1. Commodore 1571 Disk Drive + ZoomFloppy
  2. Commodore 1541 Disk Drive (with parallel mod) + ZoomFloppy
  3. Any Commodore Disk Drive + Any X-Cable

Buy from

These are my notes on how to transfer or image disks to and from a real Commodore Floppy disk.

Recommend Methods To Image Disks

  • Copy Protected Disks (Disk to Image):
    • PC (Windows) + 1571 + ZoomFloppy/XUM1541 + NIBTools + Images in G64 format
    • PC (Windows) + 1541 (With Parallel Port Mod) + ZoomFloppy/XUM1541 (With Parallel Port Option) + NIBTools + Images in G64 format
  • Copy Protected Disks (Disk to Emulated Disk):
    • PC (Windows) + 1541/1571 + Pi1541 + Maverick (GCR Nibbler Copier) + Images in G64 format (will not do all copy protections)
  • Normal Disks (Disk to Image):            
    • PC (Windows) + 1541/1571 + ZoomFloppy/XUM1541 + NIBTools + Images in D64 format
  • Normal Disks (Disk to Emulated Disk):
    • Commodore Computer + 1541/1571 + Pi1541 + DraCopy/Maverick (Fast Data Copier) + Images in D64 format
  • Normal Disks (Files to Image):
    • PC (Windows) + 1541/1571 + ZoomFloppy/XUM1541 + CBM-Transfer + Images in D64 format

Transfer Methods

There are some basic transfer methods I have discovered and they fall into the following groups below. Most of these methods require a real Commodore 1541 Disk Drive and they will not copy protected disks unless mentioned.

The instructions sets of the various methods for controlling the 1541 will vary, and so will the features they offer (i.e. Sector-to-Sector copying).

Directly connect a 1541 to a PC (Disk to Image)

  • PC (Windows) + 1571 + ZoomFloppy + NIBTools (can do copy protected disks)
  • PC (Windows) + 1541 (With Parallel Port Mod) + ZoomFloppy (With Parallel Port Option) + NIBTools (can do copy protected disks)
  • PC (Windows) + 1571 + XUM1541 + NIBTools (can do copy protected disks)
  • PC (?) + 1541 + KryoFlux + Their own software (can do copy protected disks)
  • PC (?) + 1541 + SuperCard Pro + Their own software (can do copy protected disks)

Directly connect a 1541 to a PC (File Transfer)

If you select all files it can work as if the disk is real standard DOS floppy disk for storing files etc. Programs with custom loaders (most full-disk games and demos) should be copied as disk images because they do not store their data in standard files.

  • PC (DOS)        + 1541 + Parallel Port Adapter + Star Commander
  • PC (Windows) + 1541 + Parallel Port Adapter + CBM-Transfer
  • PC (Windows) + 1541 + Parallel Port Adapter + Vice Emulator + (File Transfer Software | BASIC)
  • PC (Windows) + 1571 + ZoomFloppy + File Transfer Software
  • PC (Windows) + 1541 (With Parallel Port Mod) + ZoomFloppy (With Parallel Port Option) + File Transfer Software

Real Commodore, Real 1541 and an Emulated 1541 (Disk to Emulated Disk)

In this method creating a disk images is done by the fact we are emulating a real 1541 drive which stores the disk as an image. These methods will probably work when you want to copy disks between 2 real 1541 drives attached to a Commodore computer and if you really need too for some reason, a virtual 1541 to another virtual 1541.

You can substitute the 1541 with a another Commodore drive model of your choosing.

  • Commodore computer + 1541 + Pi1541 + Disk Copier Software (can do copy protected disks)
  • Commodore computer + 1541 + SD2IEC + Disk Copier Software
  • Commodore computer + 1541 + VC1541 (Parallel Port Adapter and PC) + Disk Copier Software (I am only guessing about this one but I don't think it will work)
  • Commodore computer + 1541 + 64HDD (Parallel Port Adapter and PC) + Disk Copier Software (I am only guessing about this one but I don't think it will work)

Real Commodore with a twin disk drive attached (BASIC)

I only mention this for completeness as I came across the following BASIC command

Copy the whole disk in drive 1 to the disk in drive 0 (on a dual-drive floppy only):

COPY D1 TO D0
  • COPY - C64-Wiki
  • The BASIC COPY command with logical drives can be used to copy between units of a dual disk drive (drives that use a single device number and two logical drives in that). I'm not aware any of them that could be connected to the plus/4 easily.
  • Examples of a suitable drive is probably the CBM PET 8050, 4040 etc..

 


Build your Commodore disk imaging setup in Windows

You must follow the 'Proper power-on sequence' as outlined here, also read these warnings

These instructions assume you have a Windows 10 PC, although not tested in Windows 11 and Windows 7 they might work. I will be installing all of the software you might use whether or not you use it to keep the instructions easy to follow.

  • Turn on your Windows 10 PC
  • Download
    • OpenCBM
      • Transfers files/images to/from a real CBM drive connected via an 'X-cable' on the parallel port or USB via ZoomFloppy/XUM1541.
      • Win NT/2K/XP, and Linux/i386 kernel driver and development library to control serial CBM devices, such as the Commodore 1541 disk drive, connected to the PC's parallel port via a XM1541 or XA1541 cable. Fast disk copier included.
      • Successor of cbm4li
      • Contains offical firmware for ZoomFloppy.
      • Releases are in a sub folder in the repo, not in the releases section.
    • C1541 / VICE (SDL Version)
      • A utility from the VICE emulator that works with CBM Image Files (ie: D64,D71,D81 files) NEW! CBM-Transfer 1.22 now supports latest releases..
      • VICE is an emulator collection which emulates the C64, the C64-DTV, the C128, the VIC20, practically all PET models, the PLUS4 and the CBM-II (aka C610). It runs on Unix, MS-DOS, Win32, OS/2, Acorn RISC OS, BeOS, QNX 6.x, Amiga, GP2X or Mac OS X machines.
      • Get the SDL version
    • CBM Transfer (CBMXfer)
      • An open-source GUI for OpenCBM, VICE, NIBTools and several other command-line utilities for transferring files and working with disk images.
    • NIBTools
      • Utilities to transfer images via parallel port. Supports protected disks.
  • Create a folder C:\commodore
  • Install OpenCBM
    • Unzip OpenCBM to (This is a temporary folder)
      C:\commodore\opencbm\
    • Navigate to this folder
    • Run the following command (doesn't have to be run from the command prompt). This will install the software to C:\Program Files\opencbm\
      C:\commodore\opencbm\install.cmd
    • When successful you will be prompted with some instructions
      I could install the necessary USB drivers if you like
      • Option 1 - You have a ZoomFloppy
        • Insert the ZoomFloppy as instructed
        • Wait a moment for Windows to recognise the device
        • Press 'y' and then Enter
        • Press any key to continue . . .
        • (optionally) Update the ZoomFloppy firmware by running (doesn't have to be run from the command prompt)
          C:\commodore\opencbm\firmware-update.bat
        • Press any key to continue . . .
        • Unplug your ZoomFloppy
      • Option 2 - You don't have a ZoomFloppy
        • Press 'n' and then Enter
        • Press any key to continue . . .
    • Add the OpenCBM folder to the system PATH. If you need help follow the instructions here
      C:\Program Files\opencbm\
    • Create a folder to stored your imaged disks
      C:\commodore\floppies\
  • Install VICE for the C1541 utillity
    • Extract the VICE download to
      C:\commodore\vice\
    • Run one of the emulators such as x64sc.exe to make sure it works
  • Install NIBTools
    • Extract the downloaded package to
      c:\commodore\nibtools\
    • (optional) Add this folder to the system PATH.
      • If you need help follow the instructions here
      • This is if you are going to use the Nibtools from the command line.
  • Install CBM-Transfer
    • Extract the downloaded package to the folder
      C:\commodore\cbm-transfer\
    • There is no a separate setup that needs to be run even though this is what some istructions say. It must be for an old version.
    • Run
      C:\commodore\cbm-transfer\CBMXfer.exe
    • If you get an error as follows, you need to perform an additional step, if not, skip this step

      • How to Fix the 'comdlg32.ocx' missing Error on Windows? - Appuals.com
        • The comdlg32.ocx file is a part of the Visual Basic Runtime suite and it’s not located on your computer by default.
        • This guides you through fixing the issue
        • I located the file on one of my other computers, but this one should be fine.
      • The file should be located at one of these locations:
        C:\Windows\System32\comdlg32.ocx (x32)
        C:\Windows\SysWOW64\comdlg32.ocx (x64)
        
      • Get a copy of the file from another one of your PCs or the Appauls article above and place it in the correct folder for your version of windows
      • Open an command prompt in Administrator mode
      • Navigate to the relevant folder from above.
      • Run these 2 commands - They might generate an error but ignore it.
        regsvr32 /u Comdlg32.ocx
        regsvr32 /i Comdlg32.ocx
    • Now run CBMXFer.exe
    • Upon first running you will get a dialogue box which can be ignored because we are fixing it in the next step
    • Under 'CBM-Transfer Options' (which should popped up automatically)
      • Set the various 'Utility Paths' which we installed earlier as follows:
        OpenCBM:     C:\Program Files\opencbm\
        Vice, C1541: C:\commodore\vice\
        NIBTools:    C:\commodore\nibtools\
      • Set the default 'Left' directory in the menu item 'Local Paths'
        C:\commodore\floppies\
  • (optionally) You can delete the folder below if you want, but I keep it because it has the documentation in it and a test script.
    C:\commodore\opencbm\
  • Done

Using your Windows setup to image Commodore disks

You must follow the 'Proper power-on sequence' as outlined here, also read these warnings

Now the software is setup, it is now time to use it to save those disk you have. I will mention all of the methods I know of and it is up to you to choose which is most appropriate with the disks and equipment you have.

Connect and Test the drive

  • Connect your Commodore drive to your chosen adapter (we will use ZoomFloppy) to your PC as prescribed here
    • You can use other adapters to connect your drive
    • For connection issues relating to the X Series of cables, see my article Commodore Tape Transfers | QuantumWarp
    • You can only use XM1541 or XA1541.
    • XA1541 is better.
  • Test your drive is on and working by trying these commands
        cbmctrl detect     - checks the drive is there (might be only ZoomFloppy)
        cbmctrl reset      - resets the drive
        cbmctrl status 8   - Will output some information about the drive

Making the Images

Now it is time to insert your disk that you want to image

  • OpenCBM - d64copy.exe
    • This will only work to copy 1541 formatted disks (D64)
    • Navigate to
      C:\commodore\floppies\
    • Run the command
      d64copy 8 test.d64
  • OpenCBM - imgcopy.exe
    • This is stilll under development and is not as stable as d64copy
    • This can be used to create D64, D71, D81 etc..
  • NIBTools - nibread.exe
    • Requires a 1571, or 1541 with parallel port mod
    • Will do copy protected disks
    • If you have a parallel connection in your Commodore drive, or a 1571 you can enable the "Use NibTools" option and create additional image types NIB, NBZ or G64 in a similar fashion. NibTools has many options, so please refer to the Nibtools documentation for correct usage of the various switches.
    • Navigate to
      C:\commodore\floppies\
    • Run one of these commands
      nibread test.nib
      nibread test.nbz   (same as above, but compressed)
    • Convert NIB to G64 or D64 disk files
      • These NIB/NZB can be converted to G64 or D64 as required. Unless needed you should always convert the disks to .G64 as this can handle protected disks and is a better format.
      • You use nibconv.exe to change the format or removed the compression.
      • How to use NIB Disk Image Files | Commodore 64 | YouTube | Basic Bites
        • Using NIB files with your C64/1541 emulator: what they are, and how to easily convert them to G64/D64 floppy disk images.
        • As always a very clear and concise video.
    • nibread.exe can be tweaked with advanced options when edge-case disks are not working. 95% of disks should image with the default settings.
  • CBM-Transfer
    • This is a GUI for all of the above software and most functions can be done through this frontend.
    • Are using a X-Cable?
      • There are several different types of X-Cables. I recommend you use an "XM" or "XA" type for use with windows. Other types may not work.
      • XA is better.
    • I prefer to use this software.
    • Easy Disk copy
    • To make a D64 image from a disk (uses d64copy.exe)
      • Make sure NO files are selected in the RIGHT pane,
      • then click the "<-" button.
      • You will be asked for a name to save the image (the Disk Title will be the default).
      • If you have a 1571 dual-sided floppy, simply change the extension to D71.

Installing and Using links (sort)


Software

  • Fast Disk Copiers (Disk to Disk)
  • Nibblers (Low Level Disk Copiers) (native)
    • Maverick
      • C64
      • Is by far the more advanced copy program. very handy program.
      • [CSDb] - Maverick Copy by Angels (1999) - Commodore 64 Tool: Maverick Copy by Angels. Released on 1999
      • Maverick - C64 Copy ProtectionC64 Copy Protection - Maverick is one of the best software copiers for the C64. Maverick V2.0 was originally called ‘Renegade’ but was forced to change their name for copyright reasons. The last legitimate version is v5.04
      • Also has a Fast Disk Copier (sector by Sector)
      • Has a GCR Nibble mode
    • Fast Hack'em
      • C64
      • [CSDb] - Search for Fast Hack'em - CSDb
      • Fast Hack'em Parameter List - C64 Copy ProtectionC64 Copy Protection - Fast Hack’em v6.04 Parameter List Here is the list of the parameters found in Fast Hack’em version 6.04, There are 189 parameters: Fast Hackem 6.04 Parameters List by Craig A. Ernster    
      • Fast Hack'em v9.5a - Commodore Software - Fast Hack'em v9.5a by Mike J. Henry and the Basement Boys is I believe the last version of the awesome Commodore 64 copying arsenal.
      • Fast Hack'em - Wikipedia
        • Fast Hack'em is a Commodore 64 fast disk/file copier, nibbler and disk editor written by Mike J. Henry and released in 1985.
        • The most popular feature of Fast Hack'em was its ability to produce copies of copy-protected commercial software. When using the nibbler, disk copying is done on a very low level, bit-by-bit rather than using standard Commodore DOS commands. This effectively nullifies the efficacy of deliberate disk errors, non-standard track layouts, and related forms of copy prevention
    • Ultrabyte Disk Nibbler
      • Ultrabyte Disk Nibbler | C64 Copy Protection - Ultrabyte has quite a few version. From the ads 2.1, V4, V5 and V6. Early version where out in 1985 including routines to copy Electronic Arts titles. V4 included a powerful new GCR Nibbler and 105 parameters. V5 now copied Rapid Lock protection and had 205 parameters including VMAX protections. Finally V6 now has 305 parameters.
  • Other Copiers
  • GUI
    • CBM-Transfer / CBMXFer
      • GitHub - sjgray/cbm-transfer - GUI for OpenCBM and others to transfer and view Commodore disks and files.
      • The CBM-Transfer Homepage
        • An open-source front-end to several command-line utilities for transferring files and working with disk images.
        • CBM-Transfer makes using those utilities easy by providing a familiar windows interface that removes the need to learn the commandline syntax of each program.
        • CBM-Transfer also includes a multi-format file and picture viewer.
      • Windows based
      • Uses the OpenCBM driver for Windows 10, a utility from VICE and NIBTools and has some of its own binaries for copying
      • Commodore 1541 Disk Drive connected via parallel port
      • This is a front-end
      • CBMX-Transfer is a front-end to several command-line utilities for transferring files and working with disk images. CBM-Transfer makes using those utilities easy by providing a familiar windows interface that removes the need to learn the commandline syntax of each program. CBM-Transfer also includes a multi-format file and picture viewer.
      • A PC running Windows 95 or higher (see note below). Tested working on Windows 10.
      • Written in Visual Basic
      • CBM-Transfer (aka "CBMXfer") is based on GUI4CBM4WIN (G4C from now on) and is a lot more improved
  • File Transfer
  • Imagers
    • CBM-Transfer / CBMXFer
      • See above
    • OpenCBM
      • see below
    • NIBTools
    • d2d64 – Preserving your C64 disks - World of Jani
      • I needed a program to transfer C64 disks to .d64 images with a good overview of the process, but more importantly, it had to be fast and with minimial interaction to be used for reading disks in large batches. I ended up making a modified version of Nibread which i decided to call d2d64 so it would not be mixed up with the original Nibread. Nibread is part of the Nibtools utilities by Pete Rittwage at the C64 Preservation Project.
    • D64it Plus4 - Software Details - Plus/4 World
      • Plus4 / PRG
      • Creates D64 images and transfer them into mass storage devices.
  • Drivers
    • OpenCBM
      • A package of core utilities as-well as drivers and firmware for the ZoomFloppy/XUM1541 and several other related devices.
      • GitHub - OpenCBM/OpenCBM
      • OpenCBM download | SourceForge.net - Download OpenCBM for free. Win NT/2K/XP, and Linux/i386 kernel driver and development library to control serial CBM devices, such as the Commodore 1541 disk drive, connected to the PC's parallel port via a XM1541 or XA1541 cable. Fast disk copier included.
      • OpenCBM Changelog | Spiro
      • Win 7/8/10, and Linux/i386/AMD64 kernel driver and development library to control serial CBM devices, such as the Commodore 1541 disk drive, connected to the PC's parallel port via a XM1541 or XA1541 cable. Fast disk copier included. Successor of cbm4linux. Also supports the XU1541 and the XUM1541 devices (a.k.a. "ZoomFloppy").
      • Contains firmware for the ZoomFloppy
      • Has copying programs in it.
  • File Management
    • 64Copy
      • By Peter Schepers
      • 64COPY is an all-purpose DOS and C64 emulator file manager, modelled after Norton Commander, and runs under the Windows DOS VDM (32-bit or lower), and in real DOS. The 64-bit editions of Windows have no DOS VDM, so you will need to install a DOS-like emulator like DOSBox. It specializes in converting and manipulating emulator files between various formats, as well as a very flexible 6502 disassembler. 64COPY does not do any communication to the 1541/71/81 floppy drives to read disks
      • Latest v4.45 2014
    • DirMaster: a d64 editor and more | Style64
      • A Windows-based GUI application designed to help Commodore enthusiasts explore and manage their disk image collections.
      • DirMaster supports common (and uncommon) emulator disk image formats (such as .d64, .d81, .d2m, etc), almost every native Commodore archival format (such as .arc, .sda, .lnx, etc), and many native graphic formats (such as koala, doodle, amica, etc).
      • DirMaster was designed to give users a perfect blend of familiar appearance (e.g. natural looking disk image contents using the PETSCII character set) and modern GUI functionality (e.g. drag and drop, opening multiple disk images at once).
      • Extact PRG from the D64 easily with this.
  • Commodore Emulators (Can connect directly to a real 1541)
    • Vice Emulator
      • Commodore 1541 Disk Drive connected via parallel port
      • I am not sure how reliable this is reliable
  • 1541 Emulator
    • VC1541 (Hardware Emulator software)
      • 1541 Drive emulator you run on your PC (supports X1541 or XE1541)
      • This works with any Commodore that has the serial port.
      • Copy from the real disk to an Emulated disk
      • Use native Commodore disk copying software or commands to copy from the real disk to an image on the emulated drive.
    • 64HDD
      • A serial bus and disk drive emulator
      • Will run with either X1541 or XE1541 cables
      • 64HDD in action | youtube | Psylicium - I found an old IBM Thinkpad laptop in the trash a couple of months ago, and decided to turn it into an emulated floppy drive for my Commodore 64, using 64HDD. This is a short video of what it does :)
      • 64hdd for real dummies! - Commodore 64 (C64) Forum - I've no idea if this is going to be of any use to anyone, but I had a lot of trouble getting 64Hdd to work. I managed to figure out most of this either myself, or by googling.
    • See this article for more information Commodore Tape Transfers | QuantumWarp

Hardware

  • 1541 Emulator
    • SD2IEC (Hardware Emulator device)
      • This connects direct to a real Commodore computer
      • Commodore 1541 Disk Drive connected to the commodore computer
      • Use native Commodore disk copying software or commands to copy from the real disk to an image on the emulated drive.
      • How to Copy C64 Disks between SD2IEC and Real Drives | YouTube | Jan Beta
        • A little tutorial video about how to copy .D64 disk images from an SD2IEC (or equivalent device) to a real floppy disk using a 1541 disk drive (and also vice versa).
        • Set SD2IC to Device 9 (non permanent)
          • OPEN 15,8,15 - Opens channel 15 for device 8
          • PRINT#15,"u0>CHR$(9) - this send the command to change the drives address to 9
          • CLOSE 15 - Closes channel 15
        • Use DraCopy on a real C64
      • sd2iec (firmware) - C64-Wiki - This page describes the functionality of the sd2iec firmware including disk commands that can be issued from the Commodore.
      • Does not support G64 images
    • Pi1541
    • Raspberry Pi
  • PC 1541 Adapters
    • ZoomFloppy Adapter
      • Based on XUM1541 developed by Nate Lawson.
      • ZoomFloppy brings Commodore disk archival into the 21st Century, bridging the gap between the both the IEEE-488 and IEC-based disk intelligent Commodore™ disk drive line and contemporary personal computers.  Taking up the baton from the ever-popular X*-1541 line of parallel port interfaces, ZoomFloppy provides complete functionality for newer machines running multitasking and multi-user operating systems and those systems lacking the legacy parallel port upon which the X*-1541 interfaces depend.
      • ZoomFloppy Set Up | YouTube | Hey Birt!
        • Follow along as we wrap a case around a ZoomFloppy board, install the USB driver and OpenCBM software on the PC as well as learn how to back up a floppy disc to a .d64 file. There is a lot more you can do with a ZoomFloppy, if you have questions let me know in the comments below.
        • In this video he uses GUI4CBM4WIN to transfer files.
      • ZoomFloppy will always be compatible with the XUM1541 firmware
      • ZoomFloppy – RETRO Innovations
        • Excellent description of this product and it's features.
        • How is the Zoom Floppy different then the XU1541?
          • Performance
            • 25-second backup without optimizing (parallel transfer, needs cable in drive).
            • Still faster even for serial xfers.
          • Functionality
            • supports Burst Nibbler protocol via nibtools. Allows raw g64 backups (read and write). Works with vmax/epyx etc etc.
          • Reliability
            • interrupt xfers in the middle (^C), start another transfer, and everything gets reset and restarted properly
            • Supports infinite holdoff
          • IEEE-488 Support
            • ZoomFloppy is one of a few solutions for USB access to the IEE-488 drives, and the only one that understands PET/CBM IEEE commands.
            • Can talk directly to Commodore Disk drives such as the PET 4040 and PET 8050.
          • Future Expansion
            • All signals are available on the X5 Expansion Port.
            • only 7 KB used out of 32 KB FLASH on microcontroller
          • How does ZoomFloppy compare to a XUM1541 device?
            • ZoomFloppy is an implementation of an XUM1541-compliant interface. XUM1541 specifies a protocol that is used to transfer data from the interface to the OpenCBM libraries. In many cases, the terms can be used interchangeably, though they do not mean exactly the same thing. Incidentally, ZoomFloppy is partially named after the “xum” in XUM1541, which many people pronounce as “zoom” .
        • How to use ZoomFloppy – The WP Guru - ZoomFloppy is an ingenious contraption by Nate Lawson which lets you connect real Commodore disk drives via USB to modern computers.
      • ZoomFloppy adapter can access CBM Commodore PET Dual drives (i.e. 4040/8050)
      • ZoomFloppy – RETRO Innovations - homepage
      • ZoomFloppy review – Vintage is The New Old
      • This seems to be a next generation adapter that works with everything including PET drives.
      • I have not used this but included it because it keeps popping up
      • Commodore Software - CBM Transfer v1.22a - CBM Transfer v1.22a by Steve J. Gray (Released Sept. 13th, 2021) - This is an excellent Windows based program for transfer files from a real Commodore 1541/71/81 to a PC using either the Zoom Floppy or USB based XUM cable.
      • XUM1541 Setting up guide | load64.com
      • ZoomFloppy from Box to using in 10 minutes. | YouTube | Steve's Real World - Unboxing and use of a ZommFloppy
      • A ZoomFloppy, PixelBook Go, and Raspberry Pi - marcbilodeau.com - The ZoomFloppy is an essential tool for any serious Commodore 64 enthusiast. Learn about it and how to set one up with a Pixelbook Go and Raspberry Pi.
      • Getting two ZoomFloppies to Work on the Same Windows 10 Box - Realm of Zoggins - You have probably made poor decisions in life when you come to the conclusion that you need so many Commodore drives hooked up to your PC that you need more than one ZoomFloppy, but here I am to tell my story.
    • XUM1541-II
    • KryoFlux (PC Adapter)
    • SuperCard Pro (CMBSTUFF)
    • Burst Nibbler
      • The package came with software to be run on the Commodore C64
      • The connection cable is the same pinout of the ZoomFloppy (i am guessing)
      • Commodore 1541 Parallel Cable with ZoomFloppy & Burst Nibbler Demo | YouTube | Steve's Retro Gaming - This video shows a mix of ZoomFloppy/Burst nibbler hardware and software and how they can be mixed and matched when using the parallel mod on a Commodore 1541.
      • [CSDb] - Burst Nibbler V1.9 by Octagon (1988) - Commodore 64 Crack: Burst Nibbler V1.9 by Octagon. Released on 1988
      • Burst Nibbler for Commodore 64/128 Datel Parallel Cable & Software Zoom floppy compatible - GameDude Computers
        • Deep Scan Burst Nibbler!  Zoom floppy compatible Powerful Software
        • The notes below explain how the ZoomFloppy and this Burst Nibbler gets the un-modified data to make perfect backups.
        • The Burst Nibbler system is probably the most powerful disk copier available for the Commodore computer.
        • It gains its power by using parallel data transfer. With standard nibblers the data is read from the disk and decoded into a standard format before being transferred to the host computer by the serial bus. This is all well until it comes across some non-standard data on the disk. Because it can't recognize the code it is unable to decode into the form needed for serial transfer. With parallel transfer the data is read from the disk and transferred directly to the host computer without the need to decode it. This is achieved because the Burst Nibbler System is actually hardware and software package. The hardware consists of a parallel cable that plugs into the computers user port. The other end of the cable plugs into the Via chip socket inside your disk drive. The software is a powerful Nibbler control program with various parameter settings to maximize results.
        • Transfers raw GCR Code via cable!
        • Fitted in minutes usually no soldering!
        • Only package to copy up to 41 tracks!
        • Will copy a whole disk in under 2 mins!
        • Full and half tracks copied - no problem!
        • Make a perfect copy every time!
        • Fitting involves lifting the 6522 Via chip inside the drive, inserting it into the socket on the cable and plugging the whole assembly back into the socket, the other end just plugs into the user port and has a through connector for your other hardware.
    • Parallel Port Adapters (XE1541/XA1541/etc....)
    • XU1541
      • The xu1541 | Spiro's home on the web - Homepage
      • Originally developed by Till Harbaum
      • This project is now dead and you should not use these adapters anymore unless you have one already.
      • The xu1541 was the modern way to connect CBM IEC bus devices to todays USB equipped PCs (The more modern alternative is the XUM1541).
      • It was meant to replace the printer port solutions based on the so-called original x1541 cable.
      • It provides a means to send low level IEC commands forth and back via the USB. PC software developed to support this interface may then directly access the disk drive and the contents of a disk inserted. It should also be possible to access other IEC devices like printers. Currently e.g. the git version of the OpenCBM software supports this interface.
    • XUM1541
      • Developed by Nate Lawson
      • The firware and schematics are released as Open Source
      • ZoomFloppy is based on this.
      • Introducing xum1541: the fast C64 floppy USB adapter | rdist
        • I’ve been working on a project in my spare time that I’m now ready to announce. It is a USB interface for the C64 1541 floppy drive, which allows it to be connected to a modern PC.
        • The xum1541 (pronounced “zoom”) is built from a modified version of the xu1541 firmware.
        • It is a USB full speed device and supports high-speed parallel cables.
        • The hardware USB support significantly speeds up transfers.
        • It will support mnib (aka nibtools), which provides low-level imaging to backup copy protected disks. I’m most excited about this feature since it is critical to archiving original floppies for the C64 Preservation Project.
      • XUM1541 Homepage | Nate Lawson - Nate's original prototype page.
      • Nate recommends buying a ZoomFloppy prebuilt.
      • A GitHub XEUM1541 project
      • OpenCBM/xum1541 at master · OpenCBM/OpenCBM · GitHub
        • Official XUM1541 firmware
        • Win 7/8/10, and Linux/i386/AMD64 kernel driver and development library to control serial CBM devices, such as the Commodore 1541 disk drive, connected to the PC's parallel port via a XM1541 or ...
  • Commodore Drives
    • 1541
      • Commodore 1541 - Wikipedia
        • Disks formatted on the 1541 are compatible with the 1551
        • You can only change the devices ID number permanently with a hardware mod.
        • the default device ID is 8, but this can be changed to 9 and possible 11.
        • You can use software to change the device ID temporarily
        • Both theses change methods are written in the user manual.
        • Commodore Pet can read 1541/1551 formatted disks
      • Readers' Feedback: Commodore 1541 Disk Drive Device Number Update
        • Commodore Disk Drive Device Number Update (From Compute! Issue 50 / July 1984)
        • Covers hardware mod and software method, both mentioned in the user manual (page 48)
        • The 1541 demo disk that was included with your drive also contains a program to change device numbers. LOAD the program DISK ADDR CHANGE then RUN. The user prompts will tell you what to do.
        • If you feel uncomfortable changing the device number using the hardware method, the same thing can be achieved with a software (program) modification. Here is the procedure:
          1. Turn off all disk drives
          2. Turn on the disk drive whose device number you want to change
          3. Type and enter the following commands:
            CLOSE 15: OPEN 15, 8, 15
            PRINT # 15, "M-W", CHR$(119) CHR$(0) CHR$(2) CHR$(n + 32) CHR$(n + 64)
            CLOSE 15
            • Change the n in the PRINT#15 command above to the device number you want to assign to the disk drive. It might be best to limit the device numbers to the range between 9 and 14.
            • Note the syntax of the PRINT#15, "M-" … command. Contrary to the instructions in the 1541 user's manual, do not include the colon after the memory-write (M-W) command. If the colon is included, the device number change will not be successful.
          4. Now you can turn on the other drive(s), and start processing.
        • The 1541 demo disk that was included with your drive also contains a program to change device numbers. LOAD the program DISK ADDR CHANGE then RUN. The user prompts will tell you what to do.
      • Change Device Number - Software Method (From Manual / Pg48)
        • The device number is selected by the drive by looking at a hardware jumper on the board and writing the number based on that jumper in a section of its RAM. Once operation is underway, it is easy to write over the previous device number with a new one.
        • The Code
          FORMAT FOR CHANGING DEVICE NUMBER:
          
              PRINT#file#,"M-W:" CHR$(119) CHR$(0) CHR$(2) CHR$(address+32)
              CHR$(address+64)
          
          EXAMPLE OF CHANGING DEVICE NUMBER (FROM 8 TO 9):
          
           10 OPEN 15, 8, 15
           20 PRINT# 15, "M-W" CHR$(119) CHR$(0) CHR$(2) CHR$(9+32)
              CHR$(9+64)
      • "HOW TO" change the 1541 drive assignment. | AmiBay
        • Every now and then i see that people are wondering how to change the 1541's drive assignment from say,8 to 9. So here is a little write up on how to do it, with pictures and a little hand drawn diagram.
        • This tutorial show you how to add your own DIP switches to your drive.
      • The 1541 demo disk that was included with your drive also contains a program to change device numbers. LOAD the program DISK ADDR CHANGE then RUN. The user prompts will tell you what to do.
      • Ruud's Commodore Site: 1541 - Ruud's Commodore site, information about Commodores and old PCs. This particular page is dedicated to the 1541 hardware and how it works.
    • 1541-II
      • Commodore 1541-II DIP switches - The Silicon Underground
        • Commodore's 1541-II disk drive has a pair of DIP switches in back. Here's how to set the Commodore 1541-II DIP switches so you can run more than one drive.
        • It shouldn’t strictly matter how you connect the drives, but Commodore recommended plugging drive 8 straight into to the computer. Plug drive 9 into drive 8. If you need help connecting them, see my earlier post on connecting Commodore disk drives.
        • For what it’s worth, the switch settings are the same on a 1571 or 1581 drive as well.
      • Device 12 - Changing the Commodore 1541 Default Device Number To Anything! | The Commodore Room - In this video, we change the 1541-II device number to start at 12 rather than the default 8. This way, you can avoid the lengthy process of software device number changes and easily daisy chain a couple dozen 1541's together!
    • 1551
      • Commodore 1551 - Wikipedia
        • Disks formatted on the 1551 are compatible with the 1541
        • You can only change the devices ID number permanently with a hardware mod.
        • the default device ID is 8, but this can be changed to 9 and possible 11.
        • You can use software to change the device ID temporarily
        • Both theses change methods are written in the user manual (age 71).
        • Commodore Pet can read 1541/1551 formatted disks
      • Change Device Number - Software Method (From Manual / Pg71)
        • The preferred way to temporarily change the device number of a disk drive is via a program. When power is first turned on. the drive reads an 110 location whose value is controlled by a jumper on its circuit board, and writes the device number it reads there into memory locations 119 and 120. Any time thereafter, you may write over that device number with a new one, which will be effective until it is changed again, or the 1551 is reset
        • The Code
          FORMAT FOR TEMPORARILY CHANGING THE DISK DEVICE NUMBER:
          
              PRINT#15,"%n"
          
              Where n = 8 or 9
          
          EXAMPLE
          
              Here is a program that sets any device number:
          
          10 INPUT "NEW DEVICE NUMBER"; DV$
          20 IF NOT (DV$ = "8" or DV$ = "9") THEN 10
          30 OPEN 15,8,15, "%R"+DV$: CLOSE 15
          
          If you send only the % sign, the device number will toggle between 8 and 9.
      • The 1551 demo disk that was included with your drive also contains a program to change device numbers. LOAD the program DISK ADDR CHANGE then RUN. The user prompts will tell you what to do.
      • Commodore 1551 and Plus 4 Update | YouTube | OldSkoolCoder - A simple repair for a 1551 not reading disk because the head is jammed.
      • Commodore 1551 Disk Drive - Peripheral - Computing History - Originally known as the SFS481, and designed specifically for the Commodore Plus 4, it is in appearance like a charcoal grey 1541. The drive plugs into the cartridge slot of the machine, using its own wired in interface.
      • Commodore 1551 - C64-Wiki - A small article on this unique drive.
      • Commodore 1551 - Hardware - Plus/4 World - The Commodore 1551 floppy drive is a rare beauty. Designed for the Commodore 264 series, it borrows the nice black look of the Commodore Plus/4. It connects through the parallel port, unlike the more common 1541 drive, which had a serial connection.
      • Commodore 1551 Academic - The Commodore 1551 (originally introduced as the SFS 481) was a floppy disk drive for the Commodore Plus/4 home computer. It resembled a charcoal-colored Commodore 1541 and plugged into the cartridge port, providing faster access than the C64/1541 combination. Commodore reportedly planned an interface to allow use of the 1551 with the C64, but it was never released.
    • 1571
      • The internal RAM of this drive is sufficient to load a complete track into memory which is require to beat some copy protections.
      • A 1571 can backup protected disks natively becasue it can read the a whole Track into RAM including read errors.
      • A parallel mod on a 1571 just speeds the drive up. I have not seen anyonbe who has done this mod so I could be wrong.
    • Parallel Port mod
      • This is mainly done on the 1541 thought it can be done on the rest of the drives with varing levels of difficultly.
      • It allows greater speed for transfers but it main feature is it allows direct access to the GCR data so copy protectsion can be imaged as-well. See Burst Nibbler notes above for more information.
      • Commodore c64 128 user port parallel adapter + 1541 drive parallel port | eBay
        • I know you have to add the parallel mod onto a 1541 to allow nibbling and it gives it speed increase. But I see on the mod 1571, does this mean you can apply this parallel mod to a 1571 for increased speed?
        • Yes, it can be used in a 1571 also, but in this case you can't use a header connector because the space inside is limited and you may need to raise the cover a little.
        • The 1571 has also the "burst" mode that can be used to increase speed and burst nibbling without parallel connection, so the mod in the 1571 is not very useful.
    • Disk Misc

Commodore BASIC/Disk Commands

  • COPY - C64-Wiki
    • Copy the whole disk in drive 1 to the disk in drive 0 (on a dual-drive floppy only)
      COPY D1 TO D0
      
      or possibly
      
      COPY D8 TO D9
    • The BASIC COPY command with logical drives can be used to copy between units of a dual disk drive (drives that use a single device number and two logical drives in that). I'm not aware any of them that could be connected to the plus/4 easily.
    • Examples of a suitable drive is probably the CBM PET 8050
  • To load and show directory
    LOAD"$",8
    LIST
  • To load a PRG and execute it
    LOAD"TTAPSERV.PRG",8
    RUN
  • DIRECTORY - C64-Wiki
    • BASIC 3.5+ (i.e. C16 and Plus4)
  • DLOAD - C64-Wiki
    • BASIC 3.5+ (i.e. C16 and Plus4)

Notes

Published in Emulators
Thursday, 26 May 2022 15:26

My Evolis New Pebble Card Printer Notes

I have an 'Evolis New Pebble' Card printer (a.k.a Pebble 2) and these are my notes (and solution) for getting this printer to work on a Windows 10 PC.

Running a Evolis New Pebble (a.k.a Pebble 2) on Windows 10

This is my easy solution

  • Install and use Pebble 4 Windows 10 drivers (Pebble 2/3/4 share the same driver,)
  • Connect the Pebble on to a HP JetDirect Ex Plus (J2591A) Print Server.
  • Set the print server up on your network
  • Install the printer in Windows 10 using a standard TCP/IP port with the IP of the print server and then select the Evolis Pebble driver.

 


My Research

Make new Drive Belt (Poly Belt / PU Belt)

I could not find anywhere I could by a new drive belt but discovered you could make your own very cheaply

The belt is a Round PU Belt and we will replace it with a one having the following specs:

  • 2mm Diameter
  • 6 inches / 152mm

This is what my belt looked like when I took it out. It is no longer flexible and if you look you can see where the PU join is.

What you need

  • A couple of bricks
  • A PC Blanker plate with a flat head (where you screw it to a case) which allows it to be head in place by the brick
  • A small blow torch
  • A 6 inch length of your PU belt

What I did

  • Heated up the top of the blanker plate with the blow torch until read hot.
  • Touched the top of the blanker plate with each end of the PU belt.
  • When they were melted (hot enough) I removed them from the blacker plate and pushed them together making sure they were even.
  • I held the 2 ends together for about 2-3 mins
  • Leave for a few minutes more.
  • Test the new belt is strong by pulling it.

What other people have done

Replace Pebble 2 Drive Belt

This is just an outline of what to do as stripping the printer is easy, just a bit fiddly at ppints.

  • Drive belt location
  • remove lid screw
  • remove the card bucket screw
  • remove screws on the side
  • remove screws below
  • waggle top cover off (carefully)
  • unscrew control board and pull out
  • remove the drive motor
  • take the circlip of the drive cog
  • replace drive belt (made earlier)
  • re-assemble printer

HP JetDirect Ex Plus (J2591A) Print Server

This is an old piece of kit with no Web Admin so some notes are required.

HP Jetdirect EX Plus Print Server Manuals | HP® Customer Support - Manuals or user guides for your HP Jetdirect EX Plus Print Server

Reset Configuration

  • Make sure the unit is off
  • Connect the unit tot he network with an ethernet cable.
  • Hold the 'Test' button down
  • Power on the device
  • keep holding the 'Test' button for 5-30 seconds and then release.

Get IP Address of Box

Pick the easiet option below to get the IP address of the box.

  • Option 1 - Press the 'Test' button and a diagnostic sheet will printout with the IP.
  • Option 2 - Check you DHCP server for a new entry.
  • Option 3 - Scan your network with an IP scanner.
    • Advanced IP Scanner
    • Angry IP Scanner
    • Slitheris Network Discovery
  • Option 4 - Check to see if you can connect to the box's fallback IP of 192.0.0.192
  • Option 5 - Possibly use Web JetAdmin?

See Current Configuration

Do this

  • telnet 10.0.0.127
  • Press Enter
  • Press Enter
  • Press / + Enter to show current configuration
  • Press ? + Enter to show configurable options

Gives this

Please type [Return] two times, to initialize telnet configuration
For HELP type "?"
> >
   ===JetDirect Telnet Configuration===
        Present Config  : BOOTP
        MAC Address     : xx:xx:xx:xx:xx:xx
        Host Name       : 10.0.0.127

        IP Address      : 10.0.0.127
        Subnet Mask     : 255.255.255.0
        Default Gateway : 10.0.0.1
        Syslog Server   : 0.0.0.0
        Idle Timeout    : 90 Seconds
        Set Cmnty Name  : Not Specified

        DHCP Config     : Disabled
        Passwd          : Disabled
        Novell          : Enabled
        DLC/LLC         : Enabled
        Ethertalk       : Enabled
        Banner page     : Enabled
>
        To Change/Configure Parameters Enter:
        Parameter-name: value <Carriage Return>

        Parameter-name  Type of value
        ip:             IP-address in dotted notation
        subnet-mask:    address in dotted notation
        default-gw:     address in dotted notation
        syslog-svr:     address in dotted notation
        idle-timeout:   seconds in integers
        set-cmnty-name: alpha-numeric string (32 chars max)
        dhcp-config:    0 to disable, 1 to enable
        novell:         0 to disable, 1 to enable
        dlc-llc:        0 to disable, 1 to enable
        ethertalk:      0 to disable, 1 to enable
        banner:         0 to disable, 1 to enable

        Type passwd to change the password.

 Type "?" for HELP, "/" for current settings or "quit" to save-and-exit.
 Or type "exit" to exit without saving configuration parameter entries
>

Set Static IP

This sets static IP and disables some unused protocols. The settings above are only temporary so need to be set permanently.

NB: when you type these in, you will not see text appear in the console

  • telnet 10.0.0.199
  • Press Enter
  • Press Enter
  • host-name: JETDIRECT
  • ip: 10.0.0.199 <Carriage Return>
  • subnet-mask: 255.255.255.0 <Carriage Return>
  • default-gw: 10.0.0.1 <Carriage Return>
  • dhcp-config: 0 <Carriage Return>
  • novell: 0 <Carriage Return>
  • dlc-llc: 0 <Carriage Return>
  • ethertalk: 0 <Carriage Return>
  • banner: 0 <Carriage Return>
  • quit

Notes for Options

  • DLC/LLC
    • HP's proprietary Logical Link Control/Data Link Control protocol.
    • DLC/LLC protocols are provided for legacy systems that might require support
  • Ethertalk
    • Is for Apple Mac OSand devices.
  • Banner
    • Print a port-specific LPD banner page.
    • From HP Jetdirect Print Servers Administrator's Guide.

JetDirect Notes

Downloads for Pebble Printers

  • Pebble 2/3/4 share the same driver, so use the Pebble 4 driver for Windows 10
  • Seagull do a generic driver which i have not tried.

Most downloads are not available on the evolis.com website for the older printers so I had to look on 'The Wayback Machine' for some.

 NB: I have most of the drivers and some manuals stored locally.

 

Published in Printers
Thursday, 07 April 2022 13:14

My Network Cable Notes

I am installing network sockets in every room in my house. I will have at least 1 Cat6a socket in each room running back to a nexus in one of the small bedrooms that is being used as a server room.

I will make sure that the socket locations allow the rooms to be used as normal if i decided to remove all of the kit.

I want to future proof the cabling so Cat6a is the best choice. Cat7 is difficult to use and only delivers the same as Cat6a. Cat8 has run length limitations and should only be used in datacentres for that reason. Not much stuff supports Cat8.

My Cable Selection

All sockets and wires must be shielded to CAT6a specs otherwise it is pointless. Use what ever you want to connect into the socket (patch cables) as you wont be burying these into the wall and they can easily be upgraded later if you kit needs a faster speed.

Cable Research

I took a while to find all of this information out but I have now put it here as a reference

Where to Buy

This is list of places in the UK to buy network cable and in particular Cat6a. Make sure you buy the right stuff.

  • Kenable
    • UK’s biggest selection of computer cables, network, audio, video & CCTV equipment | Buy Online
    • A company with a wide range of networking products. The descriptions are clear and correct.
    • kenable_ltd on eBay
  • Excel Networking Solutions
    • Excel Networking is a world-class premium performance end-to-end infrastructure solution – designed, manufactured, supported and delivered – without compromise.
    • Cat6a Cable
    • Look through their catalogue for the right type of cable. The information is very clear.
    • All datasheets are available.
  • Comms Express
    • Complete network supplies specialists providing all types of business solutions, including server & data racks, network cables, & cabinets. Order online today.
    • Supplies Excel products including network cable.
  • The Network Store 
    • We supply a large range of cat 5 cable, cat 6 cable, network sockets, patch panels, cabinets and fibre optic products all at competitive prices
    • Supplies Excel products including network cable.
  • broadbandbuyer
    • Distributors of WiFi, routers, access points, switches, cables, firewalls, VoIP, and data cabinets to small business and installers.
    • Supplies Excel products including network cable.
  • FruityCables
    • Patch Cables from 29p. All types of Cat5e, Cat6, Cat6a & Fibre Patch Cables delivered tomorrow.
    • Supplies Excel products including network cable.
  • Universal Networks
    • Universal Networks is a network cable supplier, providing a wide range of bespoke networking systems since 1994. Find out more about our solutions here.
    • This company is probably for SMEs
  • Datazonedirect
    • Networking and Telecommunications Products For All Job Sizes!
    • Only company I found that sells External Cat6a F/FTP
    • datazonedirect on eBay
  • Cablenet
    • Audio Visual, Voice and Data Cables and professional hardware at Cablenet.co.uk
  • Connectix Ltd Group
    • Cable Monkey
      • Thousands of products in stock | Next day delivery or same day collection | Premium quality products at low prices for home and business
      • Wide variety of products.
    • Netstore Direct
      • Networking equipment, cables, fibre, switches, routers, racks & cabinets in stock and available for next day delivery. Discover our fantastic prices and order online today
    • Magic Patch
    • Connectix Cabling Systems
Published in Networks
Tuesday, 05 April 2022 13:22

My Server Rack Mount Cabinet Notes

This is my research into Server Cabinets

My Kit

  • Cabinet: Excel Environ CR600 - 600mm Wide Comms Rack (542-2468-GSBN-BK) (24U 600w x 800d)
    • 24U allows me to have:
      • a shelf for my UPS
      • a shelf for 2 x Desktop PCS
      • a shelf for Low profile PC that I will use for my router
      • a rack mount KVM switch
      • a rack mount switch
      • a rack mount patch panel
      • Some cable tidies
    • Not too tall so I can put a monitor on the top and a Wifi keyboard attached to my KVM for occasional use.
    • Max Load: 800KG
  • 3 x StarTech 1U 19 inch Adjustable Vented Rack Mount Shelf Heavy Duty Fixed Server Rack Cabinet Shelf (ADJSHELFHDV)
    • They fill the full depth of my cabinet (from post to post)
    • Strong
    • Can be used for whatever I want
    • Vented to keep air flowing and I can use these vents to secure equipment with
  • Penn Elcom Delux Cage Nut Tool CN01 | PennElcomOnline.com
    • Good for removing nuts easily and can be used for putting them in when plenty of space.
  • Penn Elcom Economy Cage nut tool SX1100 | PennElcomOnline.com
    • Easy for putting tools in. can be done from the front so not much space in the rack is needed.

Cabinets / Racks

  • 4 posts
    • Cabinets which have 4 posts can usually have their posts moved closer together if required (i.e. they are adjustable)
    • 21inch (53.34cm) is the distance between the forward and rear facing parts of the posts (usually)
  • 2 post
    • This configuration is usually found in the smaller cabinets.
  • Half
  • Different widths and heights
  • Most 19" cabinets are 600mm wide. This allows some space either side of the racks.
  • Rack Unit Calculator from Penn Elcom Online
    • A rack unit (or U) is the standard terminology for describing sizes associated with 19 inch racking. Knowing how much rack unit space you require is incredibly important when installing 19 inch rack cabinets and enclosures. The unit calculator below can convert rack U's into cm, inches and feet, which makes it a very useful tool for any installer or musician who needs to know exactly what equipment to buy when building a 19 inch rack. Scroll down for a complete table of rack U-to-inch/feet/cm values.
  • Server Rack Buying Guide | Server Rack Ordering Info
  • How to Plan A Server Rack Installation | Cabinet Layout Guide | Home Network Rack
  • Before You Buy - Server Racks | StarTech
    • This video covers things you need to know before you purchase a server rack, including what a rack unit is, the difference between 2 and 4 post racks, open and closed racks, and minimum and maxmimum mounting depths, as well as to consider mounting devices on both sides of a rack, whether you need casters, want to bolt your rack to the ground, or leave it free standing.

Shelves / Drawers

There are different Types of Shelves

  • Cantilever
    • This are fixed by 2 posts. A front or rear pair.
    • When describing the size of these shelves i.e. 350mm/450mm/500mm this refers to the depth of the shelf.
    • They are all the same width because they are for 19" racks.
  • Clamping
    • This is similar to a cantilever shelf except the sides are level all the way to the back.
    • These level sides allow clamps to be attached to the sides to help attach things.
  • Fixed
    • These require a 4 post cabinet and are fixed at both ends.
    • Tend to have higher load capacities
    • When describing the size it refers to the overall depth of the cabinet usually. So a 800mm deep cabinet would require a 550mm (21inch/53.34cm + the M6 bolts) so it would fit inside the cabinet. Double check this before purchase as sometimes sellers get mixed up.
    • They are all the same width because they are for 19" racks.
  • Fixed (Adjustable)
    • Same properties as a Fixed shelf but with the ability to configure for a range of cabinet depths.
  • Sliding
    • These are used for things like keyboards or light equipment you need to pull out easily.
  • Drawers
    • These are just like your normal clothes drawers except made out of metal.
    • Usually have locks on them

They can come with Different options

  • Vented
    • Holes are milled into the metal to provide better air circulation.
  • Heavy Duty
    • Thicker or better quality metal that can take more weight.
    • These units are usually heavier that normal shelves.
  • Different colours
    • Personal choice, but I always will pick black.

Where to Buy

Cabinets

Shelves

Published in Networks
Sunday, 03 April 2022 12:18

My Treadmill Notes

General Treadmill Questions

Slippery Treadmill Belt / Why are my trainers slipping on the Running Belt?

This is dealing with you and your trainers slipping on the treadmill belt, not about the belt slipping on the motor.

Scenarios

  • Visually it looks like it should still have traction. when I clean it, it looks pretty gross and seems to help a little bit but gets slippery again soon after.
  • When I try to google anything the results are mostly people talking about "slipping" as in the belt itself is slipping.
  • New trainers don't make a difference
  • The belt feels slippy underfoot
  • My trainers started to slip while walking, running is no longer safe.
  • Cannot push and pull the belt while the Treadmill is off with just my feet and trainers (Belt surface is very slippy).

Causes

  • The belt is smooth because it is covered in dirt.
  • The belt is too smooth to provide grip.
  • The belt is now porous and is letting the lube through from the underside of the belt to the top layer which you walk on.
    • When I wipe the belt down, black grease comes off.
    • It sounds like you are slipping on the lube for the belt. The lube is on the underside of the belt to keep it from dragging on the walk platform but sometimes some of it can work its way out of the edges and might have gotten onto the top of the belt. In that case you can wet a cloth in warm water and mild soap and use it to remove the lube from the walking surface.
    • Since you already tried wiping away the lube with no success it might be that your belt has worn to the point where the lube can soak through the belt itself to the walking surface. Unfortunately, in that case the lube will continue to work through every time that you clean the belt and the only way to get your treadmill back to normal will be to replace the walk belt.
  • The belt has completely worn out.

Solutions

  1. Take a bucket of warm soapy water and bristled scrub brush and scrubbed the whole thing, then towel it off. This will remove any lube that has come trough the mat.
  2. Roughen up the belt with sandpaper.
    • Hold down sand paper on the belt while it's running.
    • It seemed to help a little but I think the sandpaper I used was to fine grit.
    • Don't use too abrasive sandpaper or you will ruin your belt.
  3. Buy a new treadmill belt (because it is worn out)

Example of Bad Running Belt

The images below show the underside of my failed Running belt.

 

Treadmill Running Belt is slipping on the motor

This section deals with issue relating to the belt not being correctly moved by the motor.

The Running Belt might need oiling/Lubrication?

  • If the belt slips on the motor.
  • The treadmill is making a droning noise.
  • The speed is inconsistent, i.e. when your feet touch the belt, it slows down.

How to lubricate your Treadmill Running Belt

Carl Lewis MOT25 - General

Description

The Carl Lewis MOT25 Foldable Motorised Treadmill comes with a 0-9mph speed range and a full 15% maximum power incline, adding more variation to your workouts. Workout programmes and pulse monitor provides motivating and safe exercise. The running deck folds up at the press of a button and can be wheeled away for easy storage.

Features

Walking and running are some of the best forms of exercise for improved general fitness. Using a treadmill puts less impact on your joints and also offers a more varied workout with performance feedback.

  • Power incline 0 - 15%
  • 3.0 HP peak
  • 0 - 10 mph speed range
  • Cut off key
  • Power folds for storage
  • 41 x 132cm running area
  • Computer Displays; speed, distance, time and pulse
  • Product dimensions: (H)117, (W)160, (D)80cm
  • Max body weight: 115kg

Links

Servicing Carl Lewis MOT25 Treadmill

Servicing the Console

On my console I found I had the following issues

  • Buttons did not work properly, and would stick often.
  • Console was very loose and so would not stay upright
  • LCD displays were not always working properly

Follow these instructions and you should be able to fix both.

Obviously make sure the unit is not plugged in

  • Sellotape the console to the handles as shown below. This prevents the unit falling while you are taking it apart.
  • Unscrew the 15 screws at the BACK of the unit. There are 4 screws under the sticker on the front which would allow access but it would make a mess of your console so i decided not to go this route.
  • Carefully pull the back casing away from the unit and you will find some wires fall out. Make a note of these wires and how they look for easier re-installations, a photo with your phone is probably best.
  • Put the case back to one side. I would put the screws in this to keep them safe.
  • Reposition the case for easier access to the PCB.
    • Remove the Sellotape holding the case in place
    • Push the case forwards and it will come off the main crossbar
    • place the console case flat on the arms of your treadmill
  • Remove the 2 rubber grommets making not of their position

    • the flat bit goes at the bottom and allows the screw cylinders to meet each other when you put the case back together
  • Clean the rubbers and crossbar (this fixes the console not standing up straight)
    • simply was the rubber grommets in warm water (no soap) with your hands to remove all of the dirt and then let them air dry some where warm in your house.
    • If the rubber has perished, use a fine grain sandpaper to roughen them up a little.
    • Clean the cross bar with a lint free cloth and some Isopropanol Alcohol
  • If you want to remove the wires from the PC to make things easier, make notes of what went where or take several photos.
    • I personal left all of the mains wires connected and just disconnected the heart monitor sensors after putting labels on them and then motor control plug.
  • Remove the 2 screws from the heart rate monitor module.
  • Remove the other black screws from the main PCB.

    • Note how tight them were.
    • Also the image above still has the Heart Rate monitor attached. There are 2 more screws underneath it for the main PCB.
  • You can now remove the PCB from the case.
    • Some of the LCDs and their rubber connectors will still be attached and some left on the PCB, so make note of what went where
  • Pull the rubber buttons out and clean them
    • Warm water in your sink (no soap) and wash with your hands gently.
    • Shake of the majority of the water and then place the rubber buttons somewhere warm in your house to air dry. You should make sure both sides get dried.
    • Do not use any cloths to clean these as the fibres will get stuck on the button and you will have to start again.
  • The button pads on the PCB need cleaning.
    • Using a lint free cloth and some Isopropanol Alcohol just rub on the pads gently until they are clean
  • Cleaning the display feed PCB pads - I have not done this bit.
    • Using the same technique as the cleaning the button pads, clean the display PCB pads
  • Cleaning the display rubber signal transfer pads - I have not done this as I am not sure if this will damage them
    • Clean them with Isopropanol Alcohol
  • Re-install the dry and clean buttons
  • Re-install the main PCB
    • Correctly locate the display transfer pads either on the PCB on on in the main case ready for mating.
    • Place the PCB back in the main case
    • Screw the PCB down making sure that you lightly press the board down while doing this to get a good compression of pads.
  • Re-install the Heart Rate monitor daughter board.
    • place down correctly and screw in
  • Re-install the dry and clean rubber grommets (in the correct direction)
  • Push the case back on
    • Correctly locate the wires (as per photo you took earlier)
    • push the case back on to the crossbar with the rubber grommets going into their appropriate slots.
    • The 2 metal stops should be push against the black blocks on the cross bar. This should put the console in the upright position.
    • Sellotape the case in position (as before) so we can work on it easier.
  • Reconnect the heart rate monitor

Now is a good time to check if all of the buttons, displays and functions work before continuing. Be safe when messing with mains voltage. Fix any issues before going any further.

  • Change to/from Miles/Kilometres if required.
    • see notes below
  • Push the rear case back onto the main case
    • When you do this make sure no wires are trapped where they should not be as this will stop the case going back together.
    • If in doubt consult your photo from earlier on how the wires should go back in.
  • Done

Your buttons and displays should now work with no issues for years to come.

Changing from Miles to Kilometres

Assuming you have the console opened as described above, the change from Miles to Kilometers or the other way around is easy.

There is a jumper on the PCB that controls this feature and only has 2 positions:

  1. Closed (Jumper present) = Miles
  2. Open (Jumper missing) = Kilometres

The location is shown in the image below (currently closed), set to your preference as required:

This option is set in the factory due to the region it was going to get sold in.

Removing the Running Belt

  • Put the treadmill flat with no incline
  • Because there is a large capacitor in the motor housing you should leave the unit to discharge over night or be very careful.
  • Make sure the treadmill is off and unplugged
  • Remove the Rear Roller Adjustment covers by removing the 2 screws that hold each of them in.
  • Remove the side rails by pulling sliding them off the end.
     

     
  • Your treadmill should now look like this with the Main Motor Cowling still present at the back
  • Remove the Power Supply and Main Motor area cowling.

    • removing the 4 holding screws
    • lift the covering straight up. It should move with relative ease.
    • The will now expose the power supply and main motor
  • Remove the Rear Roller (not the motor end)

    • Unscrew the adjustment bolts a little bit on one side and then the other, so the bolts are released evenly otherwise the roller could become stuck or damaged. Keep doing this until the bolts have been removed.
    • Put the bolts to one side
    • Take a photo of the roller so you know how it was installed
    • The roller is now loose and can be removed by pushing it towards the motor


      Make sure you do not loose the metal washers
    • Place the roller on a piece of clean plastic or surface. A bin/Trash bag should do.
    • Put one of the adjustment bolts back in the roller and the other placed back in the treadmill. This is so you can identify which way around the roller fit in the treadmill.


  • Remove the front motor roller
    • Before removing the bolt, put some Tipex on the shaft so when you take it out you know the insertion depth it was set at.
    • The adjustment bolt should be unscrewed all the way.
    • Remove the motor belt whilst making a note of what direction it goes in
    • Remove the roller and place next to your other roller.
  • Remove the the Deck (and belt)
    • Unscrew the anti-static plates from the Deck and then put the screws back in the board for safe keeping
    • Unscrew the Deck fixing screws in the order as shown below but only partway before you move to the next screw.

      • They have to be removed in this way because the screws sometime unscrew the rubber mounting below instead of coming out on their own and this method prevents the Deck from getting damaged by lifting the Deck evenly irrespective of which screws fail to come out of their rubber mounting on their own.



      • Take your time doing this section and make sure you use a the correct screw fitting (low profile fat cross)
      • When you think you have undone the all of the a screws, lift the Deck and see if it is free.
      • When free lift both the Deck and the belt away from the treadmill.
    • Separate the belt from the Deck
    • The running belt is removed.
    • Remove any rubber mountings still present on the underside of the deck.
    • Your treadmill should now look like this
    • Replace any rubber mounts that came off with the Deck back onto the frame of the Treadmill.

Cleaning the Running Belt area

This assumes you have just removed the old one and your treadmill following the instructions above.

This is optional but highly recommend because you don't swap your running Belt everyday.

While your treadmill is open, clean the following parts with warm soapy water:

  • The rollers
    • Clean only with a lint free cloth by wiping the rollers clean of any dirt.
    • They do not need to be oiled
    • So dirt might just need some encouragement with your finger nails to come off, again be gentle.
  • Deck
    • avoid the slippery running surface with soapy water, this should be cleaned with a clean lint free cloth only
  • Anti-Static plates
  • The side rails
  • The corner covers
  • The Motor Housing/Cowling
  • The Motor area

Installing a new Running Belt

This assumes you have just removed the old one and your treadmill following the instructions above.

  • Follow the instructions above in reverse with the following exceptions:
    • Before running or configuring the belt, Check to see if your Running Belt needs Lubrcation. If it does, apply some lubrication sparingly to the slide surface of the Deck. This is important to prevent damage.
  • Done

Front Roller Angle Configuration

Not all Treadmills have this adjustable front roller

This is required otherwise your Running Belt will always track left and no amount of adjustment will fix it.

Method 1

  • Screw the thread in to the Tipex mark you made earlier on the adjustment bolt

Method 2

  • Pull the belt tight against the Front roller
    • With your hands evenly placed on the belt (so both sides are pulled the same)
    • Palm down and pulling the running belt towards you
    • Not much force is required
    • The motor will make a bit of a weird noise, but this is normal
  • You should now see that the running belt is probably on an angle
  • Using the drive roller adjustment bolt
    • Tighten this slowly until the Front Roller and therefore the Running Belt are in alignment (parallel) with the Deck. Check with a ruler as shown below.
    • The belt should be in the middle of the slide surface.
    • Every few turns you might need to re-pull the belt with you hands to make sure it is sitting right and the adjustment is applied correctly.

How to configure the Running Belt's tension (Euro Treadmill Belts Method)

Video: Replacement treadmill belt - how to tension your belt | EuroTreadmillBelts.com

These are my notes for this method which I have used successfully.

You can use masking or electrical tape instead of Tipex

  • This method creates a 0.5% pre-tension on the belt.
  • This is a precise method and so should your measurements
  • Before starting, the belt should be installed but not tensioned
  • Tensioning your belt
    • Make 2 marks on each side, exactly 1 meter apart. It does not really matter where these marks are as long as they are 1m apart.
    • Leaving the tape measure on the treadmill (not on the Running Belt), tension one side untill you have stretched it my 5mm. You will see the Running Belt stretch against the tape measure.
    • Now do the other side.
    • See if the belt is now gripping, if not, tension each side up a little more (not too much)
  • Dynamically Track
    • If the belt is gripping, you can make adjustments using the tension screws independently to correct any issue with the left/right tracking.
  • After Fitting
    • Ideally the belt should allow enough room to fit the belt and give about 50-60% of the adjustment potential to tension the bel. This allows for further tensioning during the belts lifetime.

Stomp Test

After you believe you have configure/tensioned your Running belt correctly as per the method above, we now need to do a final test.

  • How To Adjust A Treadmill Belt | Treadmill Maintenance
    • This is best to be done with the cowling of so you can see the actually motor, but is not required.
    • Video time is set to the part where the stomp test is demonstrated
    • This video also shows you how to track a Treadmill but not pre-tension it.

Re-assemble the Treadmill

This is pretty much the reverse as above (after installing your new belt), but here is an overview:

  • Replace the motor cowling
  • Put the side rails back on
  • Put the Rear Roller Adjustment covers back on.

Cleaning the Incline and Vertical Store motor areas

This area is only possible to access if you put the treadmill into it's vertical storage mode.

  • Put the treadmill in to it's vertical storage mode
  • Because there is a large capacitor in the motor housing you should leave the unit to discharge over night or be very careful.
  • Make sure the treadmill is off and unplugged
  • Remove the feet protectors
  • Remove the Vertical Storage and Incline Motor Cowling

Parts Close Up Pictures

  • Power Supply and Main Motor Area (Front)
  • Power Supply and Main Motor Area (Rear)
  • Main Motor
  • Main Motor Belt
  • Power Supply
  • Power Supply Switches
  • as
Published in Health
Tuesday, 01 March 2022 14:11

cPanel - Global Email Filter not working

I wanted to filter emails by the From field using the 'Global Email Filters' feature in my cPanel Account, but this is not working.

Below is an example rule called 'Dodgy SPAM (PCP)'.

And this is an example email I wanted to block:

From:	PCP Claims <pcpclaims@somespammer.com>
Sent:	13 February 2022 17:35
To:	iamspam@example.com
Subject:	If you took finance for your car, you may have been overcharged
 
Did you take finance for your car? 

There's a chance that you were overcharged 
  
If you have a current PCP agreement, or it has ended within the last 5 
years, then the likelihood is that you were the victim of mis-selling.  
 
Whether that's undisclosed commission, hidden APR's, failure to offer a 
more suitable product or one of many other reasons. 
 
Get A Free Assessment 

If you no longer wish to receive these let us know here 

When i tested the email it says "Error: You do not own an email filter that matches the given parameters."



So my rules are in place and I have a suitable email text to test and it should be working.

NB: It should be noted that blocking SPAM using the individual email account filters works fine, just not the global one.

Solution

After some back and forth tickets with my provider the following solution was reached and my issue disappeared.

There is some problem with 'Global email filter' option from the cpanel itself due to which is not working. Now we have forwarded this issue to the Cpanel team. They will look into it and once we received any update from them then we will update you on the same ticket accordingly.
Hosting Provider

So they then followed this up with the following resolution:

I found that the vfilters file for this domain was missing. This is where the global filters are normally stored and read from when Exim processes them.

[01:46:26 server77 root@xxxxxxxx ~]cPs# cat /etc/vfilters/quantumwarp.com
cat: /etc/vfilters/quantumwarp.com: No such file or directory

I created this file and corrected permissions.

[01:47:00 server77 root@xxxxxxxx ~]cPs# touch /etc/vfilters/quantumwarp.com && /scripts/mailperm abcdefg --verbose
Checking mx configuration for demo.quantumwarp.com (abcdefg)...[auto]...Done
Checking mx configuration for quantumwarp.com (abcdefg)...[local]...Done
Checking mx configuration for search.quantumwarp.com (abcdefg)...[auto]...Done
Fixed permissions on /etc/vfilters/quantumwarp.com : was (0644), now (0640)
Fixed ownership of /etc/vfilters/quantumwarp.com : was (uid=0,gid=0), now (uid=1481,gid=12)
Fixed permissions on /home/abcdefg/mail/quantumwarp.com/hosting/dovecot-quota: was (0600), now (0640)

The custom filters are now there as normally expected:

[01:50:28 server77 root@xxxxxxxx ~]cPs# wc -l /etc/vfilters/quantumwarp.com
65 /etc/vfilters/quantumwarp.com

With this, the filters should proceed to function as expected. You may find this helpful for testing the filters going forward:

As per their update (cPanel), there was issue with the vfilter configuration file which was missing for the site (quantumwarp.com). Now they have rectified the issue and  'Global Email Filter' option is working fine now.

 

Published in cPanel
Page 8 of 96